package com.yz.xyt.service.impl;

import com.yz.xyt.domain.Leave;
import com.yz.xyt.domain.LeaveRule;
import com.yz.xyt.mapper.LeaveRuleMapper;
import com.yz.xyt.service.ILeaveRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 报备请假规则
 * @author JW.WANG
 */
@Service
public class LeaveRuleServiceImpl implements ILeaveRuleService {

    @Autowired
    LeaveRuleMapper leaveRuleMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return leaveRuleMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(LeaveRule record) {
        return leaveRuleMapper.insert(record);
    }

    @Override
    public int insertSelective(LeaveRule record) {
        return leaveRuleMapper.insertSelective(record);
    }

    @Override
    public LeaveRule selectByPrimaryKey(Integer id) {
        return leaveRuleMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(LeaveRule record) {
        return leaveRuleMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(LeaveRule record) {
        return leaveRuleMapper.updateByPrimaryKey(record);
    }

    @Override
    public LeaveRule selectIsUseRule() {
        return leaveRuleMapper.selectIsUseRule();
    }

    @Override
    public List<LeaveRule> findForList() {
        return leaveRuleMapper.findForList();
    }
}
